package com.ruoyi.internet.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.internet.api.domain.IntUser;
import com.ruoyi.internet.api.factory.RemoteIntUserFallbackFactory;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author: cjie
 * @description: 产业互联网用户服务
 * @date: 2021/8/16
 */
@FeignClient(contextId = "remoteIntUserService", value = ServiceNameConstants.INTERNET_SERVICE, fallbackFactory =
        RemoteIntUserFallbackFactory.class)
public interface RemoteIntUserService {
    /**
     * 通过用户名或电话查询用户
     *
     * @param intUser 互联网用户
     * @return 结果
     */
    @PostMapping(value = "/intUser/info")
    R<IntUser> getUserInfoByUsernameOrPhone(@RequestBody IntUser intUser);

}
